package teaching.demo2;

import java.util.ArrayList;

public class Management {
    public static void main(String[] args) {
        Student myStudent = new Student();
        myStudent.getId();
        Object aihua = new Student();
        if(aihua instanceof Student){
            System.out.println("i am aihua!");
        }
        ArrayList<String>nameList = new ArrayList<String>();
        nameList.add("小明");
        nameList.add("小王");
        nameList.add("小林");
        nameList.remove("不存在的名字");
        nameList.remove(0);
        nameList.add("小刚");
        for(String name : nameList){
            System.out.println(name);
        }
    }
}
